<extend name="Base:main" />
<block name="content">
<style>
	.style1{
		width: 100%;
		margin: 0px auto;
		margin-bottom:20px;
		border:1px solid #96C2F1;
		background-color: #EFF7FF;
		padding:1%;
		font-size:14px;
	}
</style>
<div class="tpl-content-wrapper">
            <div class="tpl-content-page-title">
               商家提现列表
            </div>
            <ol class="am-breadcrumb">
                <li><a href="#" class="am-icon-home">首页</a></li>
                <li><a href="#">账户管理</a></li>
                <li class="am-active">提现列表</li>
            </ol>
            <div class="tpl-portlet-components">
                <div class="tpl-block">
                    <div class="am-g">
                        <div class="am-u-sm-12">
                          
                                <table class="am-table am-table-striped am-table-hover table-main">
                                    <thead>
                                        <tr>
                                            <th class="table-check"> <input class="check-all" type="checkbox" value=""></th>
                                            <th>ID</th>
                                            <th>账户</th>
                                            <th>名称</th>
                                            <th>提现金额</th>
                                            <th>商家备注</th>
                                            <th>提现状态</th>
                                            <th>提现时间</th>
                                            <th width="100">操作</th>
                                        </tr>
                                    </thead>
                                    <tbody>
									<empty name="lists">
										<tr>
                                            <td colspan="10" style=" height:60px;line-height:60px; text-align:center">暂无信息</td>
                                        </tr>
									<else />
										<volist name="lists" id="val">
                                        <tr data-id="{$val.id}">
                                            <td><input class="ids" type="checkbox" value="{$val['id']}"></td>
                                            <td>{$val.id}</td>
                                            <td>{$val.account_no}</td>
                                            <td>{$val.account_name}</td>
                                            <td>{$val.money}</td>
                                            <td><empty name="val.note">无<else/>{$val.note}</empty></td>
                                            <td>
												<switch name="val.status">
													<case value="0">未审核</case>
													<case value="1">
														<div class="am-dropdown" data-am-dropdown style="cursor:pointer">
															<span class="am-dropdown-toggle">提现失败 <span class="am-icon-caret-down"></span></span>
															<div class="am-dropdown-content">
																<p>
																{$val.feedback}
																</p>
															</div>
														</div>
													</case>
													<case value="2">提现成功</case>
												</switch>
											</td>
                                            <td>{:date( 'Y-m-d H:i:s' , $val['create_time'] )}</td>
                                            <td><eq name="val.status" value="1"><a href="{:U('Accunt/takeMoneyDelete' , array('id' => $val['id']))}" request_type="ajax" call_func="call_func_delete" style="margin-right:10px;" menu="tip_menu" title="是否要删除这条信息？">删除</a><else/>--</eq></td>
                                        </tr>
										</volist>
									</empty>
                                    </tbody>
                                </table>
                                <div class="am-cf">

                                    <div class="am-fr">
                                        <ul class="am-pagination tpl-pagination">
                                            {$page}
                                        </ul>
                                    </div>
                                </div>
                                <hr>
                        </div>
                    </div>
                </div>
                <div class="tpl-alert"></div>
            </div>

        </div>
    <script>
		$(".check-all").click(function () {
			$(".ids").prop("checked", this.checked);
		});
		
		function call_func_delete( obj , data ) {
			obj.closest('tr').remove();
		}
    </script>
    
</block>